package com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaMode;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xjrsoft.common.page.PageOutput;
import com.xjrsoft.common.page.ConventPage;
import java.util.List;
import com.xjrsoft.common.result.Response;
import com.xjrsoft.core.tool.utils.BeanUtil;
import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.dto.TElectricMeterSumDto;
import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.dto.SaveTElectricMeterSumFormDataDto;
import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.vo.TElectricMeterSumVo;
import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.vo.TElectricMeterSumListVo;
import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.dto.TElectricMeterSumListDto;
import com.xjrsoft.core.secure.utils.SecureUtil;
import com.xjrsoft.core.tool.utils.FlowableUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;

import org.springframework.web.bind.annotation.*;
import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.entity.TElectricMeterSum;
import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.vo.TElectricMeterSumVo;
import com.xjrsoft.module.customerTwo.EMP.t_electric_meter_sum.service.ITElectricMeterSumService;

/**
 *  控制器
 *
 * @author dongxinhang
 * @since 2023-07-24
 */
@RestController
@AllArgsConstructor
@RequestMapping("/t_electric_meter_sum")
@Api(value = "电量记录汇总", tags = "电量记录汇总接口")
public class TElectricMeterSumController {


	private final ITElectricMeterSumService tElectricMeterSumService;


	/**
	 * 详情 
	 */
	@GetMapping("/{id}")
	@ApiOperation(value = "详情", notes = "传入tElectricMeterSum")
	@SaCheckPermission(value = {"t_electric_meter_sum:view", "t_electric_meter_sum:modify"}, mode = SaMode.OR)
	public Response<TElectricMeterSumVo> getFormData(@PathVariable String id) {
		return Response.ok();
	}

	/**
	 * 自定义分页 
	 */
	@GetMapping
	@ApiOperation(value = "分页", notes = "传入tElectricMeterSum")
	public Response<PageOutput<TElectricMeterSumListVo>> getPageList(TElectricMeterSumListDto listDto) {
		return Response.ok();
	}

	/**
	 * 新增 
	 */
	@PostMapping
	@ApiOperation(value = "新增", notes = "传入tElectricMeterSum")
	@SaCheckPermission("t_electric_meter_sum:add")
	public Response save(@RequestBody SaveTElectricMeterSumFormDataDto formDto) {

		return null;
	}

	/**
	 * 修改 
	 */
	@PutMapping("/{id}")
	@ApiOperation(value = "修改", notes = "传入tElectricMeterSum")
	@SaCheckPermission("t_electric_meter_sum:modify")
	public Response update(@PathVariable String id, @RequestBody SaveTElectricMeterSumFormDataDto formDto) {
		return Response.ok();
	}



	/**
	 * 删除 
	 */
	@DeleteMapping("/{ids}")
	@ApiOperation(value = "删除", notes = "传入ids")
	@SaCheckPermission(value = {"t_electric_meter_sum:batchDelete", "t_electric_meter_sum:delete"}, mode = SaMode.OR)
	public Response remove(@ApiParam(value = "主键集合", required = true) @PathVariable String ids) {
		return Response.ok();
	}


}
